package edu.java.texbooks.scjp.test05;

public class TestStudents {

    public static void main(String[] args) {
	CommonStudent cs1 = new CommonStudent("Ivan", new int[] { 6, 6, 6 });
	CommonStudent cs2 = new CommonStudent("Asen", new int[] { 3, 6, 6 });

	System.out.println("cs1.compareTo(cs2)= " + cs1.compareTo(cs2));
	System.out.println("cs1.compareTo2(cs2)= " + cs1.compareTo2(cs2));

	SpecialStudent ss1 = new SpecialStudent("Avon", new int[] { 2, 4, 6 });
	SpecialStudent ss2 = new SpecialStudent("Loreal", new int[] { 3, 6, 6 });

	System.out.println("ss1.compareTo(ss2)= " + ss1.compareTo(ss2));
	System.out.println("ss1.compareTo2(ss2)= " + ss1.compareTo2(ss2));

    }

}
